package com.customer.mall.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.customer.mall.domain.Cart;
import com.customer.mall.domain.vo.CartVO;
import com.customer.mall.util.ResponseResult;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author BaiGGG
 * @since 2023-06-25
 */
public interface ICartService extends IService<Cart> {

    ResponseResult<Page<CartVO>> pageCart(String phone, Integer pageNum, Integer pageSize);

    ResponseResult<CartVO> getCartById(Integer id);

    ResponseResult<String> insertOrUpdateCart(Cart cart);

    ResponseResult<String> updateCart(Cart cart);
}
